package com.blog.backend.mapper;

import com.blog.backend.req.AddTravelReq;
import com.blog.backend.req.TravelReq;
import com.blog.backend.resp.IndexArticleResp;
import com.blog.backend.resp.TravelResp;

import java.util.List;

public interface TravelManagerMapper {
    List<TravelResp> selectTravelList(TravelReq req);

    void insertTravel(AddTravelReq req);

    TravelResp selectTravelDetail(String travelId);

    void updateTravelDetail(AddTravelReq req);

    void updateTravelStatus(String travelId);

    Integer statisticsTotal();

    List<IndexArticleResp> selectHotTravel(Integer num);

    Integer selectDraftNums();

    List<TravelResp> getHotTravelList();

    List<IndexArticleResp> getNewArticle(int num);

    void updateBrowseNumById(String articleId);

    void addLikeNum(String articleId);
}
